package jp.co.technotree.common.ctrl;

import java.io.File;
import java.io.Serializable;

public class UploadFileBean implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private String uploadFileName = null;
	private String fileName = null;
	private int fileSize=-1;
	
	public String getUploadFileName() {
		return uploadFileName;
	}
	public void setUploadFileName(String uploadFileName) {
		this.uploadFileName = uploadFileName;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public int getFileSize() {
		return fileSize;
	}
	public void setFileSize(int fileSize) {
		this.fileSize = fileSize;
	}
	
	
	public String toString(){
		StringBuilder sb = new StringBuilder();
		File file = new File(uploadFileName);
		
		sb.append(file.getName());
		
		sb.append("[");
		sb.append(fileSize);
		sb.append("]");
		return sb.toString();
	}
	

}
